#ifndef SPRITE_EXT_H
#define SPRITE_EXT_H


#include "cocos2d.h"

using namespace cocos2d;

class SpriteExt : public CCSprite
{
public:
	SpriteExt(){};
	virtual ~SpriteExt();
	
	/** Creates an sprite with an image filename.
	 The rect used will be the size of the image.
	 The offset will be (0,0).
	 */
    static SpriteExt* spriteWithFile(const char *pszFileName);

	/** Creates an sprite with an image filename and a rect.
	 The offset will be (0,0).
	 */
	static SpriteExt* spriteWithFile(const char *pszFileName, const CCRect& rect);

	const std::string& getFlag() const { return m_strFlag; }
	void setFlag(const std::string& strFlag) { m_strFlag = strFlag; }
	void setDispearAction(const std::string& dispearAction) { m_dispearAction = dispearAction; };
	void setCcatFile(const std::string& ccatFile) { m_ccatFile = ccatFile; };

	void dispear();
protected:
	std::string m_strFlag;
	std::string m_dispearAction;
	std::string m_ccatFile;
};

#endif